package com.candy.control;

import com.candy.bean.UserInfo;
import com.candy.service.impl.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {
    @Autowired
    StudentService studentService;

    @GetMapping("/getStudentInfoById")
    public UserInfo getUserInfoById(){
        return studentService.getUserInfo(1);
    }





}
